import type { ResSelectType } from "@/data/constant/ResType"
import { getAssetsFile } from "@/utils/YcAssetUtil"

export type ResPointType = Record<string, ResSelectType>
export const POINT_TYPE_RES: ResPointType = {
    alarm1: {
        off: getAssetsFile("ic_point_alarm1_off.png"),
        on: getAssetsFile("ic_point_alarm1_on.png")
    },
    alarm2: {
        off: getAssetsFile("ic_point_alarm2_off.png"),
        on: getAssetsFile("ic_point_alarm2_on.png")
    },
    alarm3: {
        off: getAssetsFile("ic_point_alarm3_off.png"),
        on: getAssetsFile("ic_point_alarm3_on.png")
    },
    alarm4: {
        off: getAssetsFile("ic_point_alarm4_off.png"),
        on: getAssetsFile("ic_point_alarm4_on.png")
    },
    alarm5: {
        off: getAssetsFile("ic_point_alarm5_off.png"),
        on: getAssetsFile("ic_point_alarm5_on.png")
    }
}
export function getPointRes(pointType: number): ResSelectType {
    switch (pointType) {
        case 1:
            return POINT_TYPE_RES.alarm1
        default:
            return POINT_TYPE_RES.alarm1
    }
}